home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000030_icon-group-sender _Mon Feb 3 08:06:33 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 3 Feb 1997 08:43:11 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: Mon, 03 Feb 1997 08:06:33 -0700
  4. From: Steve Wampler <swampler@gemini.edu>
  5. Message-Id: <32F5FEF9.58E6@gemini.edu>
  6. Organization: Gemini 8m Telescopes Project
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <5cu33n$lll@skylark.ucr.edu>
  9. Subject: Re: HELP!! problem w/ Icon structs
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11. Status: RO
  12. Content-Length: 1819
  13.  
  14. Samuel Chan wrote:
  15. > well,
  16. > it seems that either people don't know about this newsgroup or Icon
  17. > just isn't popular. let me try to get something going.
  18. > i'm new at Icon. right now i can't seem to declare Icon structures
  19. > (lists, tables, sets, etc.) without errors(Invalid declarations). the
  20. > text i'm using says to make use of some procedures by linking the
  21. > appropriate libararies, which i did:
  22. >         link sets
  23. >         link lists
  24. >                 .
  25. >                 .
  26. >                 .
  27. >         mylist:=[a,b,c,d]
  28. >         myset:=set()
  29. > but the errors persists. i even set my $IPATH to every directory under
  30. > $ICON_HOME/ipl, but no success. i can't seem to locate any solutions in
  31. > the texts. i know it's something so small that i'm just overlooking.
  32. > i'd appreciate any help. thanks!!
  33.  
  34. The two assignments you give don't need access
  35. to any external procedures, so the link commands aren't needed.
  36. If you *do* need access to the procedures defined in sets.icn and
  37. lists.icn, make sure you have translated the sources into ucode
  38. files by running the script Ucode in the mail ipl directory.
  39.  
  40. [Or, just cd ipl/procs and run:
  41.  
  42.     icont -c sets lists
  43.  
  44. which will create the ucode files in that directory.]
  45.  
  46. I would
  47. (personally) copy the resulting files sets.u1,sets.u2,lists.u1,
  48. and lists.u2 into some other directory (the 'lib' directory for
  49. Icon springs to mind) and set IPATH to point to that directory.
  50.  
  51. If you done that (the files sets.u? and lists.u? exist in the
  52. directory that IPATH points to, then you might check the location
  53. of the link directives in your source code - they must be outside
  54. any procedure definitions.
  55.  
  56.  
  57. -- 
  58. Steve Wampler - swampler@gemini.edu [Gemini 8m Telescopes Project (under
  59. AURA)]
  60. The Gods that smiled upon your birth are laughing now. -- fortune cookie
  61.